POV-Ray : Newsgroups : povray.newusers : max(0,min(1,x)) : Re: max(0,min(1,x)) Server Time
4 Nov 2024 23:16:22 EST (-0500)
  Re: max(0,min(1,x))  
From: Warp
Date: 2 Oct 2002 10:23:28
Message: <3d9b0160@news.povray.org>
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> Just for couriosity I will modify it's code to work as 
> clip(0,1,x)

  Why don't you just make another function which does that instead of
modifying the standard function?
  Modifying the standard function is very dangerous, as it will potentially
break some scenes you might download.

> in with file should I look ?

  I said "math.inc", didn't I?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.